﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - Pesho.com</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    <link href="@Url.Content("~/Content/Gridmvc.css")" rel="stylesheet" type="text/css" />

</head>
<body>
    <div class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                @Html.ActionLink("Pesho.com", "Index", "Home", null, new { @class = "navbar-brand" })
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    @{
                        if (Roles.IsUserInRole(User.Identity.Name, "admin"))
                        {
                            <li>@Html.ActionLink("Profile", "Index", "User", new { area = "" }, null)</li>
                            <li>@Html.ActionLink("Admin panel", "Index", "Admin", new { area = "" }, null)</li>
                            <li>@Html.ActionLink("Go test", "Index", "StartTest", new { area = "Test" }, null)</li>
                        }
                        else if (Roles.IsUserInRole(User.Identity.Name, "user"))
                        {
                            <li>@Html.ActionLink("Profile", "Index", "User", new { area = "" }, null)</li>
                            <li>@Html.ActionLink("Go test", "Index", "StartTest", new { area = "Test" }, null)</li>
                        }
                    }
                </ul>
                @Html.Partial("_LoginPartial")
            </div>
        </div>
    </div>
    <div class="container body-content">
        @RenderBody()
        <hr />
        <footer>
            <p>&copy; @DateTime.Now.Year - Pesho.com</p>
        </footer>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
    <script src="@Url.Content("~/Scripts/gridmvc.min.js")" type="text/javascript"> </script>
</body>
</html>
